import { hasRole } from './permission/hasRole'
import { hasPerm } from './permission/hasPerm'
import { App } from 'vue'

/**
 * @methods hasRole 用户权限，用法：v-hasRole
 * @methods hasPerm 按钮权限，用法：v-hasPerm
 */
export const setupAuth = (app: App<Element>) => {
  hasRole(app)
  hasPerm(app)
}
